﻿using System;
using System.Configuration;
using System.ServiceModel;
using BusinessLogic.Connectivity.Interfaces;

namespace Server.Container
{
	class Program
	{
		static void Main(string[] args)
		{
			var uri = new Uri(ConfigurationManager.AppSettings["HostingAddress"]);

			var binding = new BasicHttpBinding();

			var host = new ServiceHost(typeof (Server));
			host.AddServiceEndpoint(typeof (IServerContract), binding, uri);

			host.Open();

			Console.ReadLine();
		}
	}
}
